package com.yxinsur.imc.business.dto;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Title: Risk.java
 * Description: 险种信息
 * Company: 壹心科技[经代开发组]
 * @date 2021-01-25
 * @version 1.0
 */
@Data
@ToString
public class Product implements Serializable {

	private static final long serialVersionUID = 1L;

    @NotBlank(message="险种编码[insCode]不能为空")
    private String insCode;

    @NotBlank(message="险种类型[riskType]不能为空")
    private String riskType;

    @NotNull(message="保费[prem]不能为空")
    private BigDecimal prem;

    private BigDecimal amount;

    @NotBlank(message="缴费频率[chargeIntervalEnum]不能为空")
    private String chargeIntervalEnum;

    @NotBlank(message="缴费年期类型[chargePeriodEnum]不能为空")
    private String chargePeriodEnum;

    @NotBlank(message="缴费年期[chargePeriodValue]不能为空")
    private String chargePeriodValue;

    @NotBlank(message="保障年期类型[coveragePeriodEnum]不能为空")
    private String coveragePeriodEnum;

    @NotBlank(message="保障年期[coveragePeriodValue]不能为空")
    private String coveragePeriodValue;

}